package com.mdz.myapplication.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * xml字段映射信息表
 * </p>
 *
 * @author 孟德志
 * @since 2021-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("xmlgs")
public class Xmlgs extends Model<Xmlgs> {

    private static final long serialVersionUID=1L;

    /**
     * xml文件格式自增长id号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 头部信息
     */
    @TableField("head")
    private String head;

    /**
     * 码上放心Event_Name值
     */
    @TableField("eventname")
    private String eventname;

    /**
     * 要添加的字段名
     */
    @TableField("zidname")
    private String zidname;

    /**
     * 尾部信息
     */
    @TableField("foot")
    private String foot;

    /**
     * 字段类型
     */
    @TableField("zidtype")
    private String zidtype;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
